package com.chenglai.slideshow.dao;

import com.chenglai.slideshow.pojo.Slideshow;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

import java.util.List;

@Repository
public interface SlideshowMapper extends Mapper<Slideshow>, MySqlMapper<Slideshow> {

    @Select("SELECT slideshow_pic FROM t_cl_slideshow WHERE slideshow_shopId = #{shopId} GROUP BY slideshow_pic")
    List<String> getSlideshowLibrary(Integer shopId);

}
